﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace CHEnhanceEfCore.Migrations
{
    public partial class haohanv14 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_roleMenuSet",
                table: "roleMenuSet");

            migrationBuilder.RenameTable(
                name: "roleMenuSet",
                newName: "role_menu");

            migrationBuilder.AddPrimaryKey(
                name: "PK_role_menu",
                table: "role_menu",
                column: "id");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_role_menu",
                table: "role_menu");

            migrationBuilder.RenameTable(
                name: "role_menu",
                newName: "roleMenuSet");

            migrationBuilder.AddPrimaryKey(
                name: "PK_roleMenuSet",
                table: "roleMenuSet",
                column: "id");
        }
    }
}
